export default function (data) {
    return {
        title: {
            text: '观看渠道统计',
            textStyle: {
                color: '#bcdcff'
            },
            top: 20,
            left: 20
        },
        grid: {
            left: 'center',
            width: '50%',
            height: '50%',
        },
        legend: {
            bottom: '5%',
            left: 'center',
            textStyle: {
                color: '#bcdcff'
            }
        },
        series: [{
            name: '访问来源',
            type: 'pie',
            radius: ['30%', '70%'],
            avoidLabelOverlap: false,
            itemStyle: {
                borderRadius: 20,
                borderColor: '#fff',
                borderWidth: 5
            },
            label: {
                show: false,
                position: 'center'
            },
            emphasis: {
                label: {
                    show: true,
                    fontSize: '40',
                    fontWeight: 'bold'
                }
            },
            labelLine: {
                show: false
            },
            data
        }]
    }
}